package com.hams.demo.system.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.hams.demo.system.entity.Department;

@org.springframework.stereotype.Repository
public interface DepartmentRepository extends PagingAndSortingRepository<Department,Long>, JpaSpecificationExecutor<Department> {
	
	@Query("from Department department where department.name = ?1")
	public Department findDepartment(String name);

}
